package com.wenwu.dao;

import java.sql.SQLException;
import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.wenwu.common.bean.RelicsBasic;
import com.wenwu.common.bean.RelicsNaturalEnvironment;
import com.wenwu.common.bean.RelicsNaturalEnvironmentExample;
import com.wenwu.common.page.PaginationVO;

public interface RelicsNaturalEnvironmentMapper extends Dao{
    int countByExample(RelicsNaturalEnvironmentExample example);

    int deleteByExample(RelicsNaturalEnvironmentExample example);

    int deleteByPrimaryKey(Integer naturalId);

    int insert(RelicsNaturalEnvironment record);

    int insertSelective(RelicsNaturalEnvironment record);

    List<RelicsNaturalEnvironment> selectByExample(RelicsNaturalEnvironmentExample example);

    RelicsNaturalEnvironment selectByPrimaryKey(Integer naturalId);

    int updateByExampleSelective(@Param("record") RelicsNaturalEnvironment record, @Param("example") RelicsNaturalEnvironmentExample example);

    int updateByExample(@Param("record") RelicsNaturalEnvironment record, @Param("example") RelicsNaturalEnvironmentExample example);

    int updateByPrimaryKeySelective(RelicsNaturalEnvironment record);

    int updateByPrimaryKey(RelicsNaturalEnvironment record);
    
    RelicsNaturalEnvironment selectObjByKey(@Param("basicId") Integer basicId)
			throws SQLException;

	int selectTotalRecord(@Param("natural") RelicsNaturalEnvironment natural)
			throws SQLException;

	List<RelicsBasic> selectList(@Param("natural") RelicsNaturalEnvironment natural,
			@Param("pageVo") PaginationVO pageVo) throws SQLException;

	int deleteByKey(List<?> keys) throws SQLException;
}